#pragma once
#ifndef _VIEWPARTCOMMON_H
#define _VIEWPARTCOMMON_H

#include "../common/glenv.h"
#include "Scene.h"
#include "Model.h"
#include "BattleStatus.h"

class ViewControl : public GlControl
{
private:
  Ptr< ShowListManager > _pShowListManager;
  Ptr< Scene > _pScene;
  Ptr< BattleStatus > _pBattleStatus;
  Ptr< myglStringControl > _pStringPainter;
  void _draw_ui ();
public:
  ViewControl (Ptr< Terrain > pTerrain,
               Ptr< BattleStatus > pBattleStatus,
               Ptr< list< Ptr< Object > > > pObjList);

  virtual void init_render ();
  virtual void draw ();

  virtual void handle_keypress (unsigned char key, int x, int y);
  virtual void handle_mouse (int button, int state, int x, int y);

};


#endif